OBJS = main.o
export OBJDIR = ${shell pwd}/objs
CC = gcc
export INC = ${shell pwd}/include
export CFLAGS = -I$(INC) -O2 -g
TARGET = cacu
RM = rm -rf
$(TARGET):$(OBJDIR) $(OBJS)
	$(MAKE) -C add
	$(MAKE) -C sub

	$(CC) $(CFLAGS) $(OBJDIR)/*.o $(OBJS) -o $@

$(OBJDIR):
	mkdir -p ./$@
clean:
	$(RM) $(TARGET) 
	$(RM) $(OBJS) 
